cmake_minimum_required(VERSION 3.16)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

SET(CSB_REVISION FALSE CACHE BOOL "Marks the presence of SkyHawk revision string.")
set(CSB_REVISION_STR "" CACHE STRING "The SkyHawk revision string.")

mark_as_advanced(CSB_REVISION CSB_REVISION_STR)

project(HookDriver
        LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

#生成文件输出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

option(WITH_TESTS "Build Tests" ON)
option(WITH_DEBUG_CMAKE "Enabled CMake project debugging functionality (e.g. source file disk checking)" OFF)
option(BUILD_WITH_PCH "Build with precompiled headers" ON)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Set up Qt stauff, auto moc/uic/rcc

add_subdirectory(HookDriver)
add_subdirectory(injector)
add_subdirectory(Demo)